class Statistics::SnsUser
  include Mongoid::Document

  field :uid,               :type => String
  field :province,          :type => String
  field :city,              :type => String
  field :profile_image_url, :type => String
  field :followers_count,   :type => String
  field :location,          :type => String
  field :url,               :type => String
  field :gender,            :type => String
  field :type,              :type => String
  field :screen_name,       :type => String
  field :recent_sent,       :type => Time,
                            :default => Time.at(0)


  # has_many :push_histories

  has_many :tweets

  def update_recent
    self.recent_sent = Time.now
    self.save
  end

end